package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lyl
 * @since 2018-08-16
 */
@TableName("activity")
public class Activity extends Model<Activity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer wxuserid;
    /**
     * 活动详情
     */
    private String activitytext;
    /**
     * 优惠金额
     */
    private BigDecimal price;
    /**
     * 活动结束时间
     */
    private Date endtime;
    /**
     * 活动开始时间
     */
    private Date uptime;
    /**
     * 活动状态
     */
    private String status;
    /**
     * 表的创建时间
     */
    @TableField("n_date")
    private Date nDate;
    /**
     * 最后一次修改时间
     */
    private Date lastModifyDate;
    /**
     * 活动的阅览量
     */
    @TableField("access_num")
    private Integer accessNum;
    /**
     * 活动名称
     */
    @TableField("activity_name")
    private String activityName;
    /**
     * 领取数量
     */
    @TableField("sign_num")
    private Integer signNum;
    /**
     * 活动图片
     */
    @TableField("sign_url")
    private String signUrl;
    /**
     * 活动封面照片
     */
    private String facepicpath;
    /**
     * 活动类型
     */
    private String activitytype;
    /**
     * 订单时间
     */
    private String alertday1;
    /**
     * 定时消息
     */
    private String alertmessage1;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getWxuserid() {
        return wxuserid;
    }

    public void setWxuserid(Integer wxuserid) {
        this.wxuserid = wxuserid;
    }

    public String getActivitytext() {
        return activitytext;
    }

    public void setActivitytext(String activitytext) {
        this.activitytext = activitytext;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getUptime() {
        return uptime;
    }

    public void setUptime(Date uptime) {
        this.uptime = uptime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getnDate() {
        return nDate;
    }

    public void setnDate(Date nDate) {
        this.nDate = nDate;
    }

    public Date getLastModifyDate() {
        return lastModifyDate;
    }

    public void setLastModifyDate(Date lastModifyDate) {
        this.lastModifyDate = lastModifyDate;
    }

    public Integer getAccessNum() {
        return accessNum;
    }

    public void setAccessNum(Integer accessNum) {
        this.accessNum = accessNum;
    }

    public String getActivityName() {
        return activityName;
    }

    public void setActivityName(String activityName) {
        this.activityName = activityName;
    }

    public Integer getSignNum() {
        return signNum;
    }

    public void setSignNum(Integer signNum) {
        this.signNum = signNum;
    }

    public String getSignUrl() {
        return signUrl;
    }

    public void setSignUrl(String signUrl) {
        this.signUrl = signUrl;
    }

    public String getFacepicpath() {
        return facepicpath;
    }

    public void setFacepicpath(String facepicpath) {
        this.facepicpath = facepicpath;
    }

    public String getActivitytype() {
        return activitytype;
    }

    public void setActivitytype(String activitytype) {
        this.activitytype = activitytype;
    }

    public String getAlertday1() {
        return alertday1;
    }

    public void setAlertday1(String alertday1) {
        this.alertday1 = alertday1;
    }

    public String getAlertmessage1() {
        return alertmessage1;
    }

    public void setAlertmessage1(String alertmessage1) {
        this.alertmessage1 = alertmessage1;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Activity{" +
        "id=" + id +
        ", wxuserid=" + wxuserid +
        ", activitytext=" + activitytext +
        ", price=" + price +
        ", endtime=" + endtime +
        ", uptime=" + uptime +
        ", status=" + status +
        ", nDate=" + nDate +
        ", lastModifyDate=" + lastModifyDate +
        ", accessNum=" + accessNum +
        ", activityName=" + activityName +
        ", signNum=" + signNum +
        ", signUrl=" + signUrl +
        ", facepicpath=" + facepicpath +
        ", activitytype=" + activitytype +
        ", alertday1=" + alertday1 +
        ", alertmessage1=" + alertmessage1 +
        "}";
    }
}
